class Config:
    update_w2v = True  # 是否在训练中更新word2vec
    vocab_size = 59290  # 词汇量
    n_class = 2  # 分类数：分别为positive和negative
    max_sen_len = 75  # 句子最大长度
    embedding_dim = 50  # 词向量维度
    batch_size = 128
    n_hidden = 256  # 隐藏层节点数
    epoch = 50
    learning_rate = 1e-3
    dropout_keep_prob = 0.5
    num_filters = 256  # 卷积层filter的数量
    kernel_size = [2, 3, 4, 5]  # 卷积层filter的长度
    save_dir = 'checkpoints/'
    save_dir_param = 'checkpoints/param.pth'
    save_dir_loss = 'checkpoints/loss.pth'
    save_dir_acc = 'checkpoints/acc.pth'
    save_dir_acc_val = 'checkpoints/acc_val.pth'
    save_dir_loss_val = 'checkpoints/loss_val.pth'
    train_path = 'Dataset/train.txt'
    dev_path = 'Dataset/validation.txt'
    test_path = 'Dataset/test.txt'
    word2id_path = 'Dataset/word_to_id.txt'
    pre_word2vec_path = 'Dataset/wiki_word2vec_50.bin'
    corpus_word2vec_path = 'Dataset/corpus_word2vec.txt'
    best_validation_model_param = 'checkpoint/best_param_'
